import { defRequest } from '../utils/request'

const leftapi1 = (params: any) => {
  return defRequest.get<any>('dbtop1', params, { showLoading: false, timeout: 50000 })
}

const leftapi2 = (params: any) => {
  return defRequest.get<any>('dbmiddle1', params, { showLoading: false, timeout: 50000 })
}

const leftapi3 = (params: any) => {
  return defRequest.get<any>('dbleft3', params, { showLoading: false, timeout: 50000 })
}

const leftapi4 = (params: any) => {
  return defRequest.get<any>('dbbottom1', params, { showLoading: false, timeout: 50000 })
}

const centerapi2 = (params: any) => {
  return defRequest.get<any>('dbtop2', params, { showLoading: false, timeout: 50000 })
}

const centerapi3 = (params: any) => {
  return defRequest.get<any>('dbmiddle2', params, { showLoading: false, timeout: 50000 })
}

const centerapi4 = (params: any) => {
  return defRequest.get<any>('dbmiddle3', params, { showLoading: false, timeout: 50000 })
}

const centerapi5 = (params: any) => {
  return defRequest.get<any>('dbbottom2', params, { showLoading: false, timeout: 50000 })
}

const centerapi6 = (params: any) => {
  return defRequest.get<any>('dbbottom3', params, { showLoading: false, timeout: 50000 })
}

const rightapi1 = (params: any) => {
  return defRequest.get<any>('dbtop3', params, { showLoading: false, timeout: 50000 })
}

const rightapi2 = (params: any) => {
  return defRequest.get<any>('dbmiddle4', params, { showLoading: false, timeout: 50000 })
}

const rightapi3 = (params: any) => {
  return defRequest.get<any>('dbright3', params, { showLoading: false, timeout: 50000 })
}

const rightapi4 = (params: any) => {
  return defRequest.get<any>('dbbottom4', params, { showLoading: false, timeout: 50000 })
}

export default {
  leftapi1,
  leftapi2,
  leftapi3,
  leftapi4,
  centerapi2,
  centerapi3,
  centerapi4,
  centerapi5,
  centerapi6,
  rightapi1,
  rightapi2,
  rightapi3,
  rightapi4
}
